﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UControl_WebUserControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            YqhData obj = new YqhData();
        }
    }

    protected void btnsearch_Click(object sender, EventArgs e)
    {
        if (txtkey.Text != "")
        {
            Session["key"] = txtkey.Text;
            Response.Redirect("search.aspx");
        }
        else
        {
            YqhData obj = new YqhData();
            Label1.Text = obj.Msg("请输入关键字！");
        }
    }
}
